package com.ruicar.afs.cloud.workflow.api.dto.flowprocess;

import com.ruicar.afs.cloud.common.core.service.ServiceInfo;
import lombok.Data;

/**
 * The type AfsFLowRequest
 * <p>Description: </p>
 * 业务服务提交工作流服务实体
 *
 * @param <FLOW> parameter
 * @author Fzero
 * @version 1.0
 * @date Created on 2020.07.09 10:00:48
 * @since 1.0
 */
@Data
public class AfsFLowRequestDto<FLOW> {

    public AfsFLowRequestDto(FLOW flowData, String bizData) {
        this.flowData = flowData;
        this.bizData = bizData;
        this.serviceName = ServiceInfo.getServiceName();
    }

    public AfsFLowRequestDto() {
        this.serviceName = ServiceInfo.getServiceName();
    }

    private String serviceName;

    /**
     * Flow data
     * <p>Description: </p>
     */
    private FLOW flowData;

    /**
     * Biz data 业务JSON串
     * <p>Description: </p>
     */
    private String bizData;
}
